﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Epsilon.Expr
{
    public class IfExpr : Expression
    {
        public List<IfClause> Clauses { get; private set; }

        public IfExpr(List<IfClause> c, int l, int col)
            : base(l, col)
        {
            Clauses = c;
        }
    }

    public class IfClause : Expression
    {
        public List<List<Expression>> Guard { get; private set; }
        public List<Expression> Body { get; private set; }

        public IfClause(List<List<Expression>> g, List<Expression> b, int l, int c)
            : base(l, c)
        {
            Guard = g;
            Body = b;
        }
    }
}
